package com.wz.compilerManual.stacktest;

import com.wz.compilerManual.Symbol;
import com.wz.compilerManual.tree.Node;

public class SymbolContent {
    private SymbolContent next;
    private Symbol symbol;
    private Node node;

    public SymbolContent(Symbol symbol) {
        this.symbol = symbol;
        this.node = new Node(symbol, null);
    }

    public SymbolContent(Symbol symbol, Node parent) {
        this.symbol = symbol;
        this.node = new Node(symbol, parent);
    }

    public void setNext(SymbolContent next) {
        this.next = next;
    }

    public SymbolContent getNext() {
        return next;
    }

    public Symbol getSymbol() {
        return symbol;
    }

    public Node getNode() {
        return node;
    }
}